#ifndef _AISETTINGS_H_
#define _AISETTINGS_H_

#include <iostream>
#include "cSoldierData.h"
#include "Math.h"
#include "cMessageBoxInGame.h"
#include "cMap.h"
#include "cMapPositionHelper.h"

using namespace irr;
using namespace core;

class cAISettings
{
public:
	cAISettings( cSoldierData* soldierData );
	void Init();
	void Update( cMap* map, cSoldierData* player02 );

	bool IsClearSight( cMap* map, vector2d<s32> p1, vector2d<s32> p2 );
	void SetToCloseAlertDistance( int distance );

	bool IsSpawnBullet(){ return _bSpawnBullet; };
	bool SetSpawnBullet( bool b ){ _bSpawnBullet = b; };

private:
	//Functions
	int distanceBetweenPoints( irr::core::vector2d<irr::s32> p1, irr::core::vector2d<irr::s32> p2 );

	//Variables
	cSoldierData* _pSoldierData;

	int _nToCloseAlertDistance;
	bool _bToClose;

	char _cToCloseString[64];
	char _cNotToCloseString[64];

	bool _bClearSight;

	bool _bSpawnBullet;
};

#endif